package com.itheima;

public class ClassroomSeating {
    public static void main(String[] args) {
        //动态初始化
//        String[][] classroom = new String[3][3];
        // 创建二维数组
        String[][] classroom = {
                {"张三", "李四", "王五"},
                {"赵六", "钱七", "孙八"},
                {"周九", "吴十", "郑十一"},
                {"王二麻子", "赵四", "孙五"},
                {"周二麻子", "赵四", "孙五"}
        };
        classroom[0][0] = "刘三";
        for (int i = 0; i < classroom.length; i++) {
            for (int j = 0; j < classroom[i].length; j++) {
                System.out.print(classroom[i][j] + "\t");
            }
            System.out.println();
        }
    }
};
